//
//  PolicyModel.m
//  Village
//
//  Created by longrise on 2017/9/19.
//  Copyright © 2017年 程虎. All rights reserved.
//

#import "PolicyModel.h"

@implementation PolicyModel
- (instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = super.init;
    if (self) {
        _title = dictionary[@"title"];
        _content = dictionary[@"content"];
        _publishcom = dictionary[@"publishcom"];
        _ID = dictionary[@"id"];
        _updatetime = dictionary[@"updatetime"];
        _readnum = dictionary[@"readnum"];
        _creator = dictionary[@"creator"];
        _fj = dictionary[@"fj"];
    }
    return self;
}

+ (NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{@"ID":@"id"};
}
- (NSString *)uniqueIdentifier
{
    static NSInteger counter = 0;
    return [NSString stringWithFormat:@"unique-id-%@", @(counter++)];
}

@end
